import java.util.Arrays;

public class test {
    public static void main(String[] args) {
        String deviceCode = "SN060";
        String message = "2020-10-01/00:00:27  00000001  RawData:OT-5002 2020/10/1 0:7:55.0\t44.471\t30.573\t22.207\t5.93\t0.75\tNAL\tNAL\t243.393\t1522.64";
        //electrical:电器设备 salt:盐度  temperature:温度  depth:深度 phyllo:叶绿素   oxygen:溶解氧  speed:速度
        String[] columns = {"ranchId", "collectdate", "serialNumber", "electrical", "salt", "temperature", "depth", "phyllo", "other1", "other2", "oxygen", "speed"};
        String[] values = new String[12];
        String[] lines = message.split("\t");
        String collectdate = lines[0].split("  ")[0];
        String order = lines[0].split("  ")[1];
        values[0] = deviceCode;
        values[1] = collectdate;
        values[2] = lines[0];
        values[3] = lines[1];
        values[4] = lines[2];
        values[5] = lines[3];
        values[6] = lines[4];
        values[7] = lines[5];
        values[8] = lines[6];
        values[9] = lines[7];
        values[10] = lines[8];
        values[11] = lines[9];
        String[] a = Arrays.copyOfRange(columns, 3, 11);
        String[] b = Arrays.copyOfRange(lines, 1, 9);

        for (int i = 0; i < b.length; i++) {
            System.out.println(b[i]);
        }
//
//        for (int i = 0; i < a.length; i++) {
//            double d = Double.parseDouble(b[i]);
//            if (d >= 44.45) {
//
//            }
//            ;
//        }


    }
}
